extends layout

block content
  .wrapper(ng-controller="mainController")
    header(class="main-header")
      a(href="#" class="logo")
        span(class="logo-mini")
          b M
        span(class="logo-lg")
          b Miou
      nav(class="navbar navbar-static-top" role="navigation")
        a(href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button")
          span(class="sr-only") Toggle navigation
        .navbar-custom-menu
          ul(class="nav navbar-nav")
            li(class="dropdown messages-menu")
              a(href="#" class="dropdown-toggle" data-toggle="dropdown")
                i(class="fa fa-envelope-o")
                span(class="label label-success")
              ul(class="dropdown-menu")
                li class="header"
    aside(class="main-sidebar")
      section(class="sidebar")
        .user-panel
          .pull-left.image
            img(src="dist/img/miou.png" class="img-circle" alt="User Image")
          .ull-left.info
            p miou
            a(href='#')
              i(class="fa fa-circle text-success") Online
        form(action="#" method="get" class="sidebar-form")
          .input-group
            input(type="text" name="q" class="form-control" placeholder="Search...")
            span(class="input-group-btn")
              button(type="submit" name="search" id="search-btn" class="btn btn-flat")
                i(class="fa fa-search")
        ul(class="sidebar-menu")
          li(class="header") 主菜单
          each val1,index1 in menusList
            li(class="treeview")
              a(href="#")
                i(class="fa fa-link")
                span #{val1.name}
                i(class="fa fa-angle-left pull-right")
              ul(class="treeview-menu")
                each val2,index2 in val1.menus
                  li
                    a(ng-click="openHtml('http://#{val2.url}')") #{val2.name}

    .content-wrapper
      section(class="content-header")
      section(class="content" id="data")
    footer(class="main-footer")
      .pull-right.hidden-xs Anything you want
      strong Copyright &copy; 2015
        a(href="#") Company.
    aside(class="control-sidebar control-sidebar-dark")
